<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich">
    <h:form>
        <h:outputLabel value="审批人" />
        <h:panelGroup layout="block" style="width:250px">
            <rich:extendedDataTable rowKeyVar="rkv" style="width:220px;max-height:180px;"
                                    value="#{checkFlowBean.currentItem.nodes}"
                                    var="sel" id="selectiontable"
                                    sortMode="single"
                                    selectionMode="single"
                                    selection="#{checkFlowBean.nodeselection}">
                <rich:column>
                    <f:facet name="header">审批人</f:facet>
                    <h:outputText value="#{sel.name}" />
                    <h:inputHidden value="#{sel.id}" />
                </rich:column>
                <rich:column>
                    <f:facet name="header">操作</f:facet>
                    <a4j:commandLink value="删除" action="#{checkFlowBean.deleteNode}" render="selectiontable"/>
                </rich:column>
                <a4j:ajax render="selectiontable" listener="#{checkFlowBean.deleteNode}"
                          event="selectionchange"/>
            </rich:extendedDataTable>
        </h:panelGroup>
    </h:form>
</ui:composition>
